package com.smedi.ismedi.authoritymanagement.core.domain.repository;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RolePermissionDetail;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-13 19:42
 */
public interface RolePermissionDetailRepository {
    List<RolePermissionDetail> selectAllByRootCodeAndRoleId(String rootCode, Long roleId);

    List<RolePermissionDetail> selectAllByRootCodeAndRoleIds(String rootCode, List<Long> roleIds);

    void deleteAllByRootCodeAndRoleId(String rootCode, Long roleId);

    RolePermissionDetail doInsert(RolePermissionDetail rolePermissionDetail);
}
